#pragma once
#ifndef _CARD_INTERACTION_TRACEKEAGLE_H_
#define _CARD_INTERACTION_TRACEKEAGLE_H_
#include "trackerobject.h"
#include "Eagle.h"
class TrackEagle:public TrackerObject
{
	friend class TrackingSystem;
public:
	TrackEagle(Eagle* _obj, std::string _name, int _id);
	~TrackEagle();
	virtual void Update(float _elapsedTime,KinectWinMgr *mgr);
	virtual void Render();
	void  SetTrackEagleState(eEagleState e)
	{
		mEagleObject->SetEagleState(e);
	}
	eEagleState GetTrackEagleState()
	{
		return mEagleObject->GetEagleState();
	}
	void Reset()
	{
		mEagleObject->Reset();
	}
	void DisableVisable()
	{
		mEagleObject->DisableVisable();
	}
	void  UpdateSkeletonInfo(Vector4  src[20]);
	
protected:
	
	Eagle  *mEagleObject;
private:
	void  UpdateTackedObj(KinectWinMgr  *mgr);
	Vector4 mEagleSkeletonPos[20];
	QVector3D mEagleInitPos;
};
#endif